/**
 * SIX VULN - http://code.google.com/p/six-vuln/
 * Copyright (C) 2006
 *   National Institute of Advanced Industrial Science and Technology (AIST)
 *   Registration Number: H20PRO-863
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package jp.go.aist.six.vuln.model.scap.cvss;

import java.io.Serializable;




/**
 * Base type for metrics that defines common attributes of all metrics.
 *
 * @author	Akihito Nakamura, AIST
 * @version $Id: MetricsType.java 529 2013-04-15 07:08:54Z nakamura5akihito@gmail.com $
 */
public abstract class MetricsType
    implements Serializable
{

    /**
     * Indicates if the metrics have been upgraded from a previous version of CVSS.
     * If fields that were approximated will have an approximated attribute set to 'true'.
     */
    private Double  upgradedFromVersion;
//    private BigDecimal  upgradedFromVersion;
    //{optional}



    /**
     * Constructs an instance.
     */
    public MetricsType()
    {
    }



    /**
     */
    public void setUpgradedFromVersion(
                    final Double upgradedFromVersion
                    )
    {
        this.upgradedFromVersion = upgradedFromVersion;
    }


    /**
     */
    public Double getUpgradedFromVersion()
    {
        return upgradedFromVersion;
    }

}
//
